<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico">  <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <link href="__STATIC__/layout/css/plugins/summernote/summernote.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
     <link rel="stylesheet" type="text/css" href="__STATIC__/layout/css/plugins/webuploader/webuploader.css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/layout/css/demo/webuploader-demo.css">
    <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;" class="x_sorll">
    <!-- 标题 -->
    <div class="page-heade">
      <h2 class="title_color text-center">AP费用反馈详情</h2>
    </div>
    <!-- 标题 -->
     <table class="table table-bordered text-left bud_hei" style="margin-bottom: 0">
        <tr>
            <td style="min-width: 120px;width: 120px">主题：</td>
            <td class="text-left" colspan="5"><span class=" font-bold">{$apply.title}</span> 活动反馈表</td>
        </tr>
        <tr>
            <td style="min-width: 120px;width: 120px">反馈单号：</td>
            <td style="min-width: 120px;width: 120px">{$fk.no}</td>
            <td style="min-width: 120px;width: 120px">原申请单编号：</td>
            <td style="min-width: 120px;width: 120px"><a href="{:url('apply_de')}?aid={$apply.id}">{$apply.no}</a></td>
             <td style="min-width: 120px;width: 120px">类型：</td>
             <td>AP费用</td>
        </tr>
         <tr>
            <td style="min-width: 120px;width: 120px">反馈人：</td>
            <td style="min-width: 120px;width: 120px"><a href="javascript:;">{$fk.cname}</a></td>
             <td style="min-width: 120px;width: 120px">所属部门：</td>
             <td colspan="3">{$fk.de_name}</td>
        </tr>
         <tr>
         <td style="min-width: 120px;width: 120px">备注：</td>
             <td colspan="5">{$fk.remark}</td>
        </tr>
 </table>
    <div class="contact-box" style="padding:8px">
        <button class="btn btn-info" type="button" onclick="daochu({$fkid},{$aid})">导出Excel完整版</button>
    </div>
      <table class="table table-bordered text-center bud_hei">
        <tr class="info">
           
            <td>序号</td>
            <td>原明细编号</td>
            <td>供应商编号</td>
            <td>供应商名称</td>
            <td>网店名称</td>
            <td>品牌</td>
            <td>品类</td>
            <td>系列</td>
            <td>活动执行时间</td>
            <td>三级费用科目</td>
            <td>实际投入费用(元)</td>
            <td>预计销量(元)</td>
            <td>预计费用率</td>
            <td>实际销量(元)</td>
            <td>实际费用率</td>
            <td>活动描述</td>
            
        </tr>
        {volist name="fkde" id="vo"}
        <tr>
          
           <td>{$i}</td><td>{$apply.no}_{$vo.detail_no}<a href="{:url('mingxijuece')}?did={$vo.id}" title="决策依据" class="J_menuItem" ><span style="display: none;">决策依据</span><span class="glyphicon glyphicon-zoom-in fangda" aria-hidden="true" style="display: inline-block;"></span></a></td><td>{$vo.gys_no}</td><td>{$vo.gys_name}</td><td>{$vo.net}</td>
           <td>{$vo.brand}</td><td>{$vo.category}</td><td>{$vo.series}</td> <td>从{$vo.start_time}至{$vo.end_time}</td><td>{$vo.kemu3}</td>
           <td class="num2">{$vo.hanshui}</td><td class="num2">{$vo.zong_xiaoliang}</td><td><span class="num2">{$vo.yujifeiyonglv}</span>%</td><td class="num2">{$vo.fankuixiaoliang}</td>
           <td><span class="num2">{$vo.shijifeiyonglv}</span>%</td> <td><a onclick="tanchuan({$vo.id})">点击查看</a></td>
        </tr>

        {/volist}
         
        <tr class="trTotal1 font-bold text-right">
            <td colspan="10" class="text-right font-bold">合计</td>
            <td class="text-right num2">{$all.hanshui}</td>
            <td class="text-right num2">{$all.zong_xiaoliang}</td>
            <td class="text-right"></td>
            <td class="text-right num2">{$all.fankuixiaoliang}</td>
            <td class="text-right"></td>
            <td></td>
        </tr>
        </table>
      <div class="contact-box">
        <p class="font-bold">本申请中包含{$contfeiyong}个三级费用科目  
      其中{volist name="feiyongs" id="fys"}{$fys.title}:<span class="num2">{$fys.kezonge}</span>（元）&nbsp;&nbsp; {/volist}；总预计费用:<span class="num2">{$all.pifuzonges}</span>（元）元;总预计销量:<span class="num2">{$all.zong_xiaoliang}</span>（元）;总实际销量:<span class="num2">{$all.fankuixiaoliang}</span>（元）;</p>
    </div>
    <table class="table table-bordered text-left bud_hei">
            <tr class="info">
                <th class="text-left font-bold">审批意见</th>
            </tr>
            {volist name="logs" id="l"}
          <tr>
              <td>{$l.USERNAME} 审批动作：{$l.MEMO}；审批意见：{if $l.COMMENTS}{$l.COMMENTS}{else/}无{/if}(审批时间：{$l.ACTIONTIME})</td>
          </tr>
          
          {/volist}
      </table>
       {if $fujian}
            <table class="table-bordered table" style="margin-top:0">
            <tr>
              <td>附件列表</td>

            </tr>
            <tr><td>
               {volist name="fujian" id="f"}
                    <a onclick="down({$f.id})">{$f.file_name}</a>&nbsp;&nbsp;
                  {/volist}
            </td></tr>
              </table>
               
        {/if}
      {if $fk.state==7}
      <div class="applyImg font-bold">
       申报已生效
      </div>
      {/if}
   
   <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
   <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
     <script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
         <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="__STATIC__/layout/js/plugins/summernote/summernote.min.js"></script>
<script src="__STATIC__/layout/js/plugins/summernote/summernote-zh-CN.js"></script>
<script src="__STATIC__/layout/js/plugins/suggest/bootstrap-suggest.min.js"></script>
 <script src="__STATIC__/layout/js/common.js"></script>
  <script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
  
   <script src="__STATIC__/layout/js/contabs_sub.js"></script>
  <script>
    function down(id){
    window.open("{:url('download_fujian')}?fid="+id)
  }
   function daochu(fkid,aid){
    window.open("{:url('daochufankui')}?fkid="+fkid+"&aid="+aid);
  }
  $(".num2").each(function(){
                if(!isNaN(parseFloat($(this).html())))
                 var num=parseFloat($(this).html()).toFixed(2);
                else
                    var num="0.00";
                $(this).html(num);
            })
     function tanchuan(did){
        $.post("{:url('getdes')}",{did:did},function(re){

            var data=JSON.parse(re);
            if(data["state"]==1){
                 parent.layer.open({
                type: 1,
                skin: 'layui-layer-demo', //样式类名
                closeBtn: false, //不显示关闭按钮
                shift: 2,
                shadeClose: true, //开启遮罩关闭
                content: data["msg"]
                });
            }else{
                   parent.layer.open({
                type: 1,
                skin: 'layui-layer-demo', //样式类名
                closeBtn: false, //不显示关闭按钮
                shift: 2,
                shadeClose: true, //开启遮罩关闭
                content: '系统繁忙请稍后再试'
                });
            }
        })
        
    }

  </script>
</body>

</html>
